<%@page import="bean.B01boardVO"%>
<%@page import="bean.B01boardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="/Web/02CSS/B01board.css">
<script src = '/Web/03JavaScript/B01board.js'></script>
</head>
<body>
<jsp:useBean id="vo" class = 'bean.B01boardVO' scope='page'/>
<jsp:setProperty property="*" name="vo"/>
<%
B01boardDTO dto = new B01boardDTO();
dto.setVo(vo);
B01boardVO v = dto.selectOne();
%>
<form name = 'hiddenFrm' method="post"> 
	<input type='hidden' name='b_number' value="<%=vo.getB_number()%>"/>
	<input type="hidden" name="nowPage"	value="<%=vo.getNowPage()%>"/>
	<input type="hidden" name='find' value='<%=vo.getFind()%>'/>
</form>
<h1> 게시판 보기 </h1>
<hr>
	<div id = 'board_list_title'>
		<%
		if(v.getB_image()!= null) {%>
   		<img src="/Web/04JSP/01MemberPhoto/<%=v.getB_image()%>" alt="사진" width='200px' height='100px'/>
		<%} %>
	
		<li> 글번호 : <%=v.getB_number() %> 
		<li> 글쓴이 : <%=v.getM_id() %>
		<li> 작성일 : <%=v.getB_date() %> 
		<li> 최종수정일 : <%=v.getB_modifyDate()%> 
		<li> 제목 : <%=v.getB_title() %> 
		<li> 내용 : <%=v.getB_content() %> <br>
		
		<% if(v.getB_image()!= null){%>	
		<li> 파일 : <%=v.getB_image() %> 
		<% }else{%>
		<li> 파일 : 파일없음
		<% }%>
	</div>	
<br>
<hr>
	<div class = 'bottommenu'  align="left">
	<div><input type ="button" 	value="수정" 		id="btnModify" style="margin-left: 20px"></div>
	<div><input type ="button" 	value="삭제" 		id="btnDelete"></div>
	<div><input type ="button" 	value="새 글 작성" 	id="btnInput"></div>
	<div><input type ="button" 	value="답변달기" 	id="btnReply" style="margin-left: 580px"></div>
	<div><input type ="button" 	value="목록으로" 	id="btnList"></div>
	</div>
	</p>
	<div class='comment'align="center">
	<div><input type = "text" size = '10' name ='b_c_name' style="margin-bottom: 3px;" placeholder="아이디"/></div>
	<div><input type = "text" size = '60' name ='b_c_content' style="margin-bottom: 3px;" placeholder="댓글 내용을 입력해주세요."/></div>
	<div><input type = "button" value ='댓글등록' style="margin-bottom: 3px;"/></div><br/>
	</div>

</body>
<script>viewInit();</script>
</html>

